import service from '@/utils/request';

// 图片文件上传
export function uploadPic(data) {
  return service({
    url: '/api/system/uploadPic',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  });
}

// 视频上传
export function uploadVideo(data) {
  return service({
    url: '/api/system/uploadVideo',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data',
      timeout: 60000 * 5 // 5分钟超时
    }
  });
}
